-- GENERATED SPELL FOR [Infinite Whelp] --


function spell0_21818(pUnit, Event) --@Corrupt Medivh,n/a--
pUnit:FullCastSpellOnTarget(31326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21818', 0, 1)
end

function Sorts_21818(pUnit, Event)
local choix_sorts_21818 = math.random(0, 0)
if choix_sorts_21818 == 0 then
pUnit:RegisterEvent('spell0_21818', 1, 1)
end
end

function mob21818_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21818', math.random(1500, 3000), 1)
end

function mob21818_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21818_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21818_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21818, 1, 'mob21818_Action')
RegisterUnitEvent(21818, 2, 'mob21818_Leave')
RegisterUnitEvent(21818, 3, 'mob21818_Kill')
RegisterUnitEvent(21818, 4, 'mob21818_Die')
